<template>
    <div class="setting">
        <el-avatar src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png" />
        <el-dropdown trigger="click">
            <span class="el-dropdown-link">
                Simp
                <el-icon class="el-icon--right"><arrow-down /></el-icon>
            </span>
            <template #dropdown>
                <el-dropdown-menu>
                    <el-dropdown-item :icon="Plus">Action 1</el-dropdown-item>
                    <el-dropdown-item :icon="CirclePlusFilled">
                        Action 2
                    </el-dropdown-item>
                    <el-dropdown-item :icon="CirclePlus">Action 3</el-dropdown-item>
                    <el-dropdown-item :icon="Check">Action 4</el-dropdown-item>
                    <el-dropdown-item :icon="CircleCheck">Action 5</el-dropdown-item>
                </el-dropdown-menu>
            </template>
        </el-dropdown>
    </div>

</template>

<script lang="ts" setup>
import {
    ArrowDown,
    Check,
    CircleCheck,
    CirclePlus,
    CirclePlusFilled,
    Plus,
} from '@element-plus/icons-vue'
</script>
<style lang="scss" scoped>
.example-showcase .el-dropdown-link {
    cursor: pointer;
    color: var(--el-color-primary);
    display: flex;
    align-items: center;
}

.setting {
    padding: 0;
    display: flex;
    align-items: center;

    .el-dropdown-link {
        margin: 0 10px;
        font-size: 14px;
        color: #909399;
    }
}
</style>